package com.house.system.mapper;

import java.util.List;

import com.house.common.core.domain.entity.House;
import com.house.system.domain.HouseSupport;

/**
 * 房屋家具类Mapper接口
 *
 * @author tc
 * @date 2022-02-04
 */
public interface HouseSupportMapper {
    /**
     * 查询房屋家具类
     *
     * @param houseId 房屋家具类主键
     * @return 房屋家具类
     */
    public HouseSupport selectHouseSupportByHouseId(Long houseId);

    /**
     * 查询房屋家具类列表
     *
     * @param houseSupport 房屋家具类
     * @return 房屋家具类集合
     */
    public List<HouseSupport> selectHouseSupportList(HouseSupport houseSupport);

    /**
     * 新增房屋家具类
     *
     * @param houseSupport 房屋家具类
     * @return 结果
     */
    public int insertHouseSupport(HouseSupport houseSupport);

    /**
     * 修改房屋家具类
     *
     * @param houseSupport 房屋家具类
     * @return 结果
     */
    public int updateHouseSupport(HouseSupport houseSupport);

    /**
     * 删除房屋家具类
     *
     * @param houseId 房屋家具类主键
     * @return 结果
     */
    public int deleteHouseSupportByHouseId(Long houseId);

    /**
     * 批量删除房屋家具类
     *
     * @param houseIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteHouseSupportByHouseIds(Long[] houseIds);

    /**
     * 获取该房屋已分配家具
     *
     * @param houseId 房屋编号
     * @return 结果
     */
    List<HouseSupport> selectAllocatedList(Long houseId);

    /**
     * 批量增加房屋家具
     * @param list
     */
    void batchAllotSupport(List<HouseSupport> list);

}
